package com.giantlizard.cloud.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * 系统-机构
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@EqualsAndHashCode
@TableName("sys_org")
@ApiModel(value="SysOrg对象", description="系统-机构")
public class SysOrg implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "机构ID")
    @TableId("ORG_ID")
    private String orgId;

    @ApiModelProperty(value = "机构编码")
    @TableField("ORG_CODE")
    private String orgCode;

    @ApiModelProperty(value = "机构名称")
    @TableField("ORG_NAME")
    private String orgName;

    @ApiModelProperty(value = "机构简介")
    @TableField("ORG_DESC")
    private String orgDesc;

    @ApiModelProperty(value = "机构负责人")
    @TableField("ORG_LEADER")
    private String orgLeader;

    @ApiModelProperty(value = "机构电话")
    @TableField("ORG_TEL")
    private String orgTel;

    @ApiModelProperty(value = "机构邮箱")
    @TableField("ORG_EMAIL")
    private String orgEmail;

    @ApiModelProperty(value = "机构地址")
    @TableField("ORG_ADDR")
    private String orgAddr;

    @ApiModelProperty(value = "机构类型 （0 公司 1 部门）")
    @TableField("ORG_TYPE")
    private String orgType;

    @ApiModelProperty(value = "机构状态 （0 正常 1停用）")
    @TableField("ORG_STATUS")
    private String orgStatus;

    @ApiModelProperty(value = "机构排序")
    @TableField("ORDER_NO")
    private Integer orderNo;

    @ApiModelProperty(value = "父机构ID")
    @TableField("PARENT_ID")
    private String parentId;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_DATE")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATE_USER")
    private String createUser;

    @ApiModelProperty(value = "修改时间")
    @TableField("UPDATE_DATE")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;

    @ApiModelProperty(value = "修改人")
    @TableField("UPDATE_USER")
    private String updateUser;
} 